<?php
/**
 * @author jrodriguez
 * @copyright 2013
 */
require_once("../../PathHelper.php");
require_once $rootPath.'Gazzetta.BL/RSSConfigManager.php';

try
{
	$rssConfigManager = new RSSConfigManager();
	
	$rssSource = $rssConfigManager->getRSSSourceById(2);
    
    echo ' ' . $rssSource ->getLink();
    $rssConfigManager->updateRSSSource(2, $rssSource->getLink().'s', $rssSource->getTitle(), $rssSource->getIdCategory(),$rssSource->getDescription(), $rssSource->getEnabled());
	
	$rssSource = $rssConfigManager->getRSSSourceById(2);
    
    echo ' ' . $rssSource ->getLink();
	

}
catch (Exception $e)
{
	echo ' ' . $e->getMessage();
}
 ?>